/*
 * @Author: yhy
 * @Date: 2022-03-17 15:46:50
 * @LastEditTime: 2022-03-21 10:43:06
 * @LastEditors: yhy
 * @Description:
 */
// 此文件专门管理token

const key = 'geek-itheima'

// 设置
export const setToken = (token) => {
  localStorage.setItem(key, token)
}

// 获取token
export const getToken = () => {
  return localStorage.getItem(key)
}

// 删除
export const removeToken = () => {
  localStorage.removeItem(key)
}
